package LFhalf {
	import tea.lib.Point3d;
	class phyObject {
		public var position:Point3d;
		public var speed:Point3d;
		public var objectType:String;
		public var tag:String;
		public var faceRight:Boolean = true;
		public var currentState:uint;
		
		public var currentAction:String;
		public var currentFrame:uint;
		public var currentWait:uint;
		
		public var curerntInput:PlayerInput;
		public var actionChanged:Boolean = false;
		public function phyObject(_tag:String, _obj:Object = null):void {
			position = new Point3d();
			speed = new Point3d();
			tag = _tag;
			for (var key:String in _obj) {
				try{
					this[key] = _obj[key];
				}catch (e) {
					trace('no parm:',key)
				}
			}
		}
		public function setPosition(_position:Point3d, onLand:Boolean=false):void {
			position = _position;
			if (onLand) {
				//position.y+=landY()
			}
		}
		public function jumpState(_nextstate:String,frame:uint=0):void 
		{
			
		}
	}
}